|
|
|
|
|
|
|
Day 1
Your First Database Program in Visual Basic 5 |
|
|
|
|
|
|
|
|
The first day's lesson gave you a crash course in how to build a fully functional data entry form in Visual Basic with minimal programming code. On Day 1, you learned the following: |
|
|
|
|
|
|
|
|
· How to use the data control to bind a form to a database and data table by setting the DatabaseName and RecordSource properties |
|
|
|
|
|
|
|
|
· How to use the Text box bound input control to bind an input box on the form to a data table and data field by setting the DataSource and DataField properties |
|
|
|
|
|
|
|
|
· How to combine standard command buttons and the AddNew and Delete methods to provide Add and Delete record functionality to a data entry form |
|
|
|
|
|
|
|
|
The lesson on Day 2 concentrated on the fundamentals of relational databases. You learned the following about relational databases: |
|
|
|
|
|
|
|
|
· A relational database is a collection of related data. |
|
|
|
|
|
|
|
|
· The three key building blocks of relational databases are data fields, data records, and data tables. |
|
|
|
|
|
|
|
|
· The two types of database relationships are one-to-one (which uses qualifier fields) and one-to-many (which uses pointer fields). |
|
|
|
|
|
|
|
|
· There are two types of key (or index) fields: primary and foreign. |
|
|
|
|
|
|
|
|
You also learned the 14 basic data field types recognized by Visual Basic 5. You constructed a data entry form that allows you to test the way Visual Basic behaves when attempting to store data entered into the various data field types. |
|
|
|
|
|
|
|
|
Day 3
Visual Basic Database Objects |
|
|
|
|
|
|
|
|
In Day 3's lesson, you learned that there are three main types of Visual Basic Recordset data objects: |
|
|
|
|
|
|
|
|
· Table-type objects: These are used when you have a large dataset and need to do frequent searches to locate a single record. You can use the Visual Basic Seek method and use Visual Basic Indexes with the Table object. |
|
|
|
|
|